Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The README hard-coded "Current development version: 0.3.0" and the 0.3.0 highlights, and installed from a local zip. It now shows live badges (r-universe, main, dev, CI, coverage) grouped like the org README, points to NEWS.md for changes, and installs from r-universe or GitHub dev. CLAUDE.md: CI matrix and triggers as they are now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add offline tests (httr2 mocked responses, mocked bindings, tempdir fixtures) for the OpenAI Batch HTTP layer, batch state/status/collect/ submit helpers, HF/OpenAI/TEI backend adapters, embed_corpus verbose and dry-run paths, distance/score/calibration edge cases and the demo runners. No changes under R/. Two tests are skipped as known bugs: existing-hash loading in embed_corpus() and .ovc_load_existing_hash() passes the label partition as open_dataset()'s `schema`, so unchanged rows are never skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
embed_corpus() and .ovc_load_existing_hash() passed the label folder as the `schema` argument of arrow::open_dataset(), which always errored inside try(), so no existing hashes were loaded: every run re-embedded the whole corpus and batch_submit_openai() resubmitted embedded rows. - .ovc_load_existing_hash() opens model_dir/label=<label> directly and keeps the newest batch=<n> hash per id. - embed_corpus() uses that helper instead of its own copy, and appends new shards after existing ones so skipped runs do not overwrite shards holding unchanged rows. - Un-skip the two "Known bug" tests; add a test for appending changed rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After a changed row is re-embedded (embed_corpus() with delete_existing = FALSE, or batch_collect_openai()), its old row stayed in an older batch=<n> shard, so readers saw the id twice. - New .ovc_prune_superseded_rows(label_dir): newest shard wins; older shards are rewritten without superseded ids (temp file + rename), and emptied shard files and batch= folders are deleted. Also cleans duplicates left by earlier versions. - Both writers call it only after their new shards are written. - .ovc_load_existing_hash() keeps the newest-hash rule as a safety net. - Tests for embed_corpus (rewrite, emptied shard removed, distances see each id once) and batch_collect_openai. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merges
devintomainfor openalexVectorComp 0.3.5 (main is at 0.3.4). SeeNEWS.md.Changes
arrow::open_dataset()as itsschemaargument and failed silently, soembed_corpus(delete_existing = FALSE)re-embedded everything andbatch_submit_openai()resubmitted already-embedded rows as paid OpenAI batch jobs. Both now share one working helper.batch=1would have been overwritten), and once they are written the superseded rows are removed from older shards, so each id appears once per label and distance/score functions see no duplicates. Duplicates left by earlier versions are cleaned up on the next write.Checks
devtools::test()offline: 584 passed, 0 failed (3 HF-token skips)dev: PR Checks green🤖 Generated with Claude Code